<!-- 第五步/查看详情 -->
<template>
    <div class="">
        <el-table :data="tableData" border>
            <el-table-column label="利润计算区间" :formatter="initinterval" prop="profitBegin" align="center">
            </el-table-column>
            <el-table-column label="利润分配" prop="profitProportion"  align="center">
                <template slot-scope="scope">
                    {{scope.row.distributionProportion}}{{infobase.dividendUnit==1?'%':'元'}}
                </template>
            </el-table-column>
            <el-table-column label="业绩激励基数" prop="profitBase" align="center">
                <template slot-scope="scope">
                    {{scope.row.profitBase==1?'营收业绩':''}}
                </template>
            </el-table-column>
            <el-table-column label="业绩激励" prop="distributionProportion" align="center">
                <template slot-scope="scope">
                    {{scope.row.distributionProportion}}{{infobase.dividendUnit==1?'%':'元'}}
                </template>
            </el-table-column>
        </el-table>
    </div>
</template>
<script>
import api from '@/api/apiPath'
export default {
	components: {
        
        },
	data () {
		return {
            
        }
    },
    methods:{
        initinterval(row, column, cellValue, index){
            let str =''
            if (!row.profitBegin) {
                str = '≤'+row.profitEnd  
            }else if(row.profitBegin && row.profitEnd){
                str =  row.profitBegin +'(含) -'+ row.profitEnd+'(不含）'
            }else if(!row.profitEnd){
                str = '≥'+row.profitBegin
            }
            return str
        },
       
	},
	created () {
        
    },
    props:['tableData'],
	destroyed() {
		
	},
	filters: {

	}
}

</script>

<style lang="stylus" scoped>


</style>
